package com.yang.enums;


import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum CacheStrategyEnum {
    /**
     * 逻辑过期解决缓存击穿
     */
    LOGIC_EXPIRE("逻辑过期解决缓存击穿","queryWithLogicalExpire"),

    /**
     * 互斥锁解决缓存击穿
     */
    MUTEX_LOCK("互斥锁解决缓存击穿","queryWithMutex"),

    /**
     * 缓存控制解决缓存穿透
     */
    CACHE_NULL("缓存空值解决缓存穿透","queryWithPassThrough"),

    /**
     * 布隆过滤器解决缓存穿透
     */
    BLOOM_FILTER("布隆过滤器解决缓存穿透","queryWithBloomFilterUtil");

    /**
     * 描述
     */
    private final String description;

    /**
     * 策略
     */
    private final String strategy;
}
